﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminPanel/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Areas.AdminPanel.Models.TaxiServiceCreateViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create Taxi Service</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <div id="create-service">
                <h5>Name</h5>
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.NameEN) %>
                    <%= Html.TextBoxFor(model => model.NameEN) %>
                    <%= Html.ValidationMessageFor(model => model.NameEN) %>
                </div>
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.NameRU) %>
                    <%= Html.TextBoxFor(model => model.NameRU) %>
                    <%= Html.ValidationMessageFor(model => model.NameRU) %>
                </div>
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.NameAM) %>
                    <%= Html.TextBoxFor(model => model.NameAM) %>
                    <%= Html.ValidationMessageFor(model => model.NameAM) %>
                </div>
            
            
                <h5>Price policy</h5>
                
            <div class="editor-field">
                <%= Html.LabelFor(model => model.PricePerKM) %>
                <%= Html.TextBoxFor(model => model.PricePerKM) %>
                <%= Html.ValidationMessageFor(model => model.PricePerKM) %>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.MinPrice) %>
                <%= Html.TextBoxFor(model => model.MinPrice) %>
                <%= Html.ValidationMessageFor(model => model.MinPrice) %>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.MinPriceKM) %>
                <%= Html.TextBoxFor(model => model.MinPriceKM)%>
                <%= Html.ValidationMessageFor(model => model.MinPriceKM)%>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.WaitMinutePrice) %>
                <%= Html.TextBoxFor(model => model.WaitMinutePrice)%>
                <%= Html.ValidationMessageFor(model => model.WaitMinutePrice)%>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.FreeWaitMinutes) %>
                <%= Html.TextBoxFor(model => model.FreeWaitMinutes)%>
                <%= Html.ValidationMessageFor(model => model.FreeWaitMinutes)%>
            </div>

            <div class="editor-field">
                <%= Html.LabelFor(model => model.UpTo6KMPrice) %>
                <%= Html.TextBoxFor(model => model.UpTo6KMPrice) %>
                <%= Html.ValidationMessageFor(model => model.UpTo6KMPrice) %>
            </div>

            <div class="editor-field">
                <%= Html.LabelFor(model => model.OutsideTownKMPrice) %>
                <%= Html.TextBoxFor(model => model.OutsideTownKMPrice)%>
                <%= Html.ValidationMessageFor(model => model.OutsideTownKMPrice)%>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.ToAirportPrice) %>
                <%= Html.TextBoxFor(model => model.ToAirportPrice)%>
                <%= Html.ValidationMessageFor(model => model.ToAirportPrice)%>
            </div>
                
                <h5>Contact info</h5>
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.DistrictId) %>
                    <%= Html.DropDownListFor(model => model.DistrictId,Model.Districts)%>
                    <%= Html.ValidationMessageFor(model => model.DistrictId)%>
                </div>
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.PrimaryPhoneNumber) %>
                    <%= Html.TextBoxFor(model => model.PrimaryPhoneNumber) %>
                    <%= Html.ValidationMessageFor(model => model.PrimaryPhoneNumber) %>
                </div>
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.PhoneNumber1) %>
                    <%= Html.TextBoxFor(model => model.PhoneNumber1) %>
                    <%= Html.ValidationMessageFor(model => model.PhoneNumber1) %>
                </div>
                
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.PhoneNumber2) %>
                    <%= Html.TextBoxFor(model => model.PhoneNumber2) %>
                    <%= Html.ValidationMessageFor(model => model.PhoneNumber2) %>
                </div>
                
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.PhoneNumber3) %>
                    <%= Html.TextBoxFor(model => model.PhoneNumber3) %>
                    <%= Html.ValidationMessageFor(model => model.PhoneNumber3) %>
                </div>
                
                
                <div class="editor-field">
                    <%= Html.LabelFor(model => model.PhoneNumber4) %>
                    <%= Html.TextBoxFor(model => model.PhoneNumber4) %>
                    <%= Html.ValidationMessageFor(model => model.PhoneNumber4) %>
                </div>
            
            
                <h5>Options</h5>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.NoSmoking) %>
                <%= Html.CheckBoxFor(model => model.NoSmoking)%>
                <%= Html.ValidationMessageFor(model => model.NoSmoking) %>
            </div>
            
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.Conditioning) %>
                <%= Html.CheckBoxFor(model => model.Conditioning)%>
                <%= Html.ValidationMessageFor(model => model.Conditioning) %>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.HasMeter) %>
                <%= Html.CheckBoxFor(model => model.HasMeter) %>
                <%= Html.ValidationMessageFor(model => model.HasMeter) %>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.SpeaksEnglish) %>
                <%= Html.CheckBoxFor(model => model.SpeaksEnglish)%>
                <%= Html.ValidationMessageFor(model => model.SpeaksEnglish)%>
            </div>

            <div class="editor-field">
                <%= Html.LabelFor(model => model.ParkQuantity) %>
                <%= Html.TextBoxFor(model => model.ParkQuantity)%>
                <%= Html.ValidationMessageFor(model => model.ParkQuantity)%>
            </div>

            <div class="editor-field">
                <%= Html.LabelFor(model => model.ServingFromYear) %>
                <%= Html.TextBoxFor(model => model.ServingFromYear)%>
                <%= Html.ValidationMessageFor(model => model.ServingFromYear)%>
            </div>

            <h5>Transport types</h5>
            <div class="editor-field">
                <%= Html.LabelFor(model => model.SelectedCarIds) %>
                <%= Html.ListBoxFor(model => model.SelectedCarIds, Model.Cars)%>
            </div>    
           

            <h5>Description</h5>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.DescriptionEN) %>
                <%= Html.TextAreaFor(model => model.DescriptionEN) %>
                <%= Html.ValidationMessageFor(model => model.DescriptionEN) %>
            </div>
            
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.DescriptionRU) %>
                <%= Html.TextAreaFor(model => model.DescriptionRU)%>
                <%= Html.ValidationMessageFor(model => model.DescriptionRU) %>
            </div>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.DescriptionAM) %>
                <%= Html.TextAreaFor(model => model.DescriptionAM)%>
                <%= Html.ValidationMessageFor(model => model.DescriptionAM) %>
            </div>
            
            <h5>Internal notes</h5>
            
            <div class="editor-field">
                <%= Html.LabelFor(model => model.InternalNotes) %>
                <%= Html.TextAreaFor(model => model.InternalNotes)%>
                <%= Html.ValidationMessageFor(model => model.InternalNotes)%>
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>
        </div>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

